package com.xuxueli.applyModules.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @date ：Created in 2021/9/14 10:37
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "KONG域名表", description = "KONG域名表")
public class Domain implements Serializable {

    private static final long serialVersionUID = 1945581334815664220L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "研发中心所在地")
    @TableField(value = "development_center")
    private String developmentCenter;

    @ApiModelProperty(value = "网络环境，区分测试和生产预生产")
    @TableField(value = "environment")
    private String environment;

    @ApiModelProperty(value = "环境归属，如上汽或者第三方")
    @TableField("attribute")
    private String attribute;

    @ApiModelProperty(value = "区分内外网环境")
    @TableField("net_work")
    private String netWork;

    @ApiModelProperty(value = "域名")
    @TableField("net_domain")
    private String netDomain;

    @ApiModelProperty(value = "认证方式")
    @TableField("admin_auth")
    private String adminAuth;

    @ApiModelProperty(value = "认证的apikey")
    @TableField("admin_apikey")
    private String adminApikey;

    @ApiModelProperty(value = "对应网络访问的url")
    @TableField("admin_url")
    private String adminUrl;

    @ApiModelProperty(value = "网络对应的科室")
    @TableField("net_department")
    private String netDepartment;

    @ApiModelProperty(value = "网络对应的科室")
    @TableField("kafka_addr")
    private String kafkaAddr;

    @ApiModelProperty(value = "网络对应的科室")
    @TableField("kafka_topic")
    private String kafkaTopic;

    @ApiModelProperty(value = "日志插件对应的kafka的component_group")
    @TableField("component_group")
    private String componentGroup;

    @ApiModelProperty(value = "日志插件对应的kafka的component_type")
    @TableField("component_type")
    private String componentType;

    @ApiModelProperty(value = "日志插件对应的kafka的module")
    @TableField("module")
    private String module;

    @ApiModelProperty(value = "日志插件对应的kafka的project")
    @TableField("project")
    private String project;

    @ApiModelProperty(value = "日志插件对应的kafka的ip_restriction")
    @TableField("ip_restriction")
    private String ipRestriction;

    @ApiModelProperty(value = "服务域名")
    @TableField("service_domain")
    private String serviceDomain;
}
